package com.hbms.business.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.hbms.business.mapper.HotelbmsHotelreviewsMapper;
import com.hbms.business.domain.HotelbmsHotelreviews;
import com.hbms.business.service.IHotelbmsHotelreviewsService;

/**
 * 酒店评价Service业务层处理
 * 
 * @author zl
 * @date 2024-04-10
 */
@Service
public class HotelbmsHotelreviewsServiceImpl implements IHotelbmsHotelreviewsService 
{
    @Autowired
    private HotelbmsHotelreviewsMapper hotelbmsHotelreviewsMapper;

    /**
     * 查询酒店评价
     * 
     * @param reviewId 酒店评价主键
     * @return 酒店评价
     */
    @Override
    public HotelbmsHotelreviews selectHotelbmsHotelreviewsByReviewId(Long reviewId)
    {
        return hotelbmsHotelreviewsMapper.selectHotelbmsHotelreviewsByReviewId(reviewId);
    }

    /**
     * 查询酒店评价列表
     * 
     * @param hotelbmsHotelreviews 酒店评价
     * @return 酒店评价
     */
    @Override
    public List<HotelbmsHotelreviews> selectHotelbmsHotelreviewsList(HotelbmsHotelreviews hotelbmsHotelreviews)
    {
        return hotelbmsHotelreviewsMapper.selectHotelbmsHotelreviewsList(hotelbmsHotelreviews);
    }

    /**
     * 新增酒店评价
     * 
     * @param hotelbmsHotelreviews 酒店评价
     * @return 结果
     */
    @Override
    public int insertHotelbmsHotelreviews(HotelbmsHotelreviews hotelbmsHotelreviews)
    {
        return hotelbmsHotelreviewsMapper.insertHotelbmsHotelreviews(hotelbmsHotelreviews);
    }

    /**
     * 修改酒店评价
     * 
     * @param hotelbmsHotelreviews 酒店评价
     * @return 结果
     */
    @Override
    public int updateHotelbmsHotelreviews(HotelbmsHotelreviews hotelbmsHotelreviews)
    {
        return hotelbmsHotelreviewsMapper.updateHotelbmsHotelreviews(hotelbmsHotelreviews);
    }

    /**
     * 批量删除酒店评价
     * 
     * @param reviewIds 需要删除的酒店评价主键
     * @return 结果
     */
    @Override
    public int deleteHotelbmsHotelreviewsByReviewIds(Long[] reviewIds)
    {
        return hotelbmsHotelreviewsMapper.deleteHotelbmsHotelreviewsByReviewIds(reviewIds);
    }

    /**
     * 删除酒店评价信息
     * 
     * @param reviewId 酒店评价主键
     * @return 结果
     */
    @Override
    public int deleteHotelbmsHotelreviewsByReviewId(Long reviewId)
    {
        return hotelbmsHotelreviewsMapper.deleteHotelbmsHotelreviewsByReviewId(reviewId);
    }
}
